package com.libre.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.libre.common.base.BaseEntity;
import lombok.Data;
import java.io.Serializable;
import java.util.List;

/**
* @description   部门
* @author        庞留杰
* @date          2021/12/20 20:09
* @version       V1.0
**/
@Data
@TableName(value = "sys_depart")
public class Depart extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	private String ancestors;//祖级列表
	private String pid;//父id
	private String name;//部门名称
	private String note;//备注
	private String sort;//排序

	@TableField(exist = false)
	private String title;//供前端使用，与name相同
	@TableField(exist = false)
	private List<Depart> children;

}
